#include<bits/stdc++.h>

using namespace std;

int main() {
    int a = 123;
    int b = 45;
    string ab, ba;//sscanf sprintf
    ostringstream oss, oss2;
    oss << a << "" << b;
    oss2 << b << "" << a;
    ab = oss.str();
    ba = oss2.str();
    if (ab > ba) {
        cout << ab << endl;

    } else {
        cout << ba << endl;
    }

    return 0;
}
